<?php echo $javascript->link('add-edit_only.min.js');?>
<div class="periodo form">
<?php echo $form->create('Periodo');?>
<fieldset class="ui-corner-all">
    <legend class="ui-corner-all ui-widget-header ui-state-active">Adicionando Periodo</legend>
    <div align="left" style="padding:1px 2px 1px 2px;"><?php $session->flash(); ?></div>
    <?php echo $form->input('codigo', array(
        'label'=>'Código',
        'size'=>10
    ));?>
    <?php echo $form->input('descripcion', array(
        'label'=>'Descripción',
        'size'=>60));?>
    <?php echo $form->input('tipo_perido_id', array(
        'label'=>'Tipo',
        'type'=>'select',
        'options'=>array(
            1=>'MENSUAL',
            2=>'BIMENSUAL',
            3=>'TRIMESTRAL',
            4=>'SEMESTRAL',
            5=>'ANUAL'
        )));?>
</fieldset>
<?php echo $form->submit('Guardar', array('div' => false,'class' => 'btnsave'));?>
<?php echo $html->link('Cancelar', array('action'=>'index'), array('class'=>'lnkbutton btncancel'));?>
<?php echo $form->end();?>
</div><p/>
